package com.gnerv.cms.dto;

import com.gnerv.cms.entity.Role;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * 基础平台-角色 添加 DTO
 *
 * @author zhang
 * @date 2019/11/29
 **/
@Data
public class RoleSaveDTO {

    private String ukId;
    private String code;
    private String name;
    private Integer status;
    private Integer sort;

    private List<String> menuIds;

    public Role convert() {
        Role role = new Role();
        BeanUtils.copyProperties(this, role);
        return role;
    }
}
